package com.mxpio.erp.common.enums;

public interface MesEnums {

    enum WorkOrderTaskStatus {//MES_WORK_ORDER_TASK_STATUS
        NEW("10","开立待派工"),
        READY("20","待作业"),
        WORKING("30","作业中"),
        FINISH("40","已完成"),
        SHUT("50","已关闭"),
        CANCEL("60","已取消"),
        OFFLINE("70","已下线"),
        RETURNLINE("80","返线中"),
        PAUSE("90","暂停中");

        WorkOrderTaskStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum DispatchMode {//ERP_MES_DISPATCH_MODE
        ASSIGN("1","派单"),
        GRAB("2","抢单"),
        APS("3","APS自动排程");

        DispatchMode(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum WorkOrderStatus {//MES_WORK_ORDER_STATUS
        NEW("0","开立"),
        SEND("1","下达"),
        WORKING("2","生产中"),
        FINISH("3","已完成"),
        PAUSE("4","暂停中"),
        SHUT("5","已关闭"),
        SCRAP("6","已作废"),
        OFFLINE("7","已下线"),
        RETURNLINE("8","返线中");

        WorkOrderStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
    enum ProdInspType {//ERP_MES_PROD_INSP_TYPE
        PROD("1","产品检验"),
        PROC("0","工序检验");

        ProdInspType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
